﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class SelectUnLockedOrderPage : System.Web.UI.Page
{
    private string CustomerCode
    {
        get
        {
            string param = Request.QueryString["param"] != null ? Request.QueryString["param"].ToString() : "";
            string[] arr = param.Split('|');
            return arr[0];
        }
    }
    private string PayType
    {
        get
        {
            string param = Request.QueryString["param"] != null ? Request.QueryString["param"].ToString() : "";
            string[] arr = param.Split('|');
            return arr[1];
        }
    }
    private string OrderId
    {
        get
        {
            string param = Request.QueryString["param"] != null ? Request.QueryString["param"].ToString() : "";
            string[] arr = param.Split('|');
            return arr[2];
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindData();
        }
    }
    private void BindData()
    {
        DataSet ds = null;
        string ret = new BLL.ORDERDOC().GetOrderByWhere(" where ORDER_LOCK=0 and ORDER_CHECK=0 and ORDER_DELETE=0 and ORDER_CUSTOMERCODE='" + CustomerCode + "' and ORDER_APAY=" + PayType + " and ORDER_ID not in('" + OrderId+"')", out ds);
        this.Repeater1.DataSource = ds;
        this.Repeater1.DataBind();
    }
}
